/**
 * Created by ly on 2015/4/26.
 */
var mod = angular.module("mod",[]);
//注册service
//mod.value('appName', 'MyCoolApp');
mod.controller("modCtrl",function($scope){
  $scope.modVal = "module init!";
});
//injector导入第三方模块
var injector = angular.injector(['ng','mod']);
injector.invoke(function($rootScope, $compile, $document) {
  $compile($document)($rootScope);
  $rootScope.$digest();
});

/**
 * 加载module的三种方法
 * ng-App
 * angular.bootstrap
 * injector
 */
